package com.leyou.common.vo;

import java.util.List;

/*** 
* @Description:  返回分页查询  公共类
* @Param:  
* @return:  
* @Author: zhoukx
* @Date: 2019/4/17 
*/ 
public class PageResult<T> {
      private Long total;// 总条数
      private Long totalPage;// 总页数
      private List<T> items;// 当前页数据
  
      public PageResult() {
      }
  
      public PageResult(Long total, List<T> items) {
          this.total = total;
          this.items = items;
      }
  
      public PageResult(Long total, Long totalPage, List<T> items) {
          this.total = total;
          this.totalPage = totalPage;
          this.items = items;
      }
  
      public Long getTotal() {
          return total;
      }
  
      public void setTotal(Long total) {
          this.total = total;
      }
  
      public List<T> getItems() {
          return items;
      }
  
      public void setItems(List<T> items) {
          this.items = items;
      }
  
      public Long getTotalPage() {
          return totalPage;
      }
  
      public void setTotalPage(Long totalPage) {
          this.totalPage = totalPage;
      }
  }